<template>
  <div class="jiayou-layout">
    <snackbar style-color="#4A4A4A"
              back-color="#ffffff"
              status-color="#ffffff"
              :fixed="true"/>

    <div class="top-content">
      <span class="timeLabel">时间：</span>
      <span class="timeText">2021-5-31</span>
      <span class="ypLabel">油品：</span>
      <span class="ypText">0 # 柴油</span>
    </div>

    <div class="card-layout">
      <div class="car-number-layout">
        <van-field v-model="value" label="加油车牌" placeholder="请输入车牌号"/>
      </div>
      <div class="price-layout">
        <span class="label">当前油价：</span>
        <span class="text"><p class="peice">6.70</p>元/升</span>
      </div>
      <div class="number-layout">
        <span class="label">加油数量：</span>
        <span class="text"><p class="number">20</p>升</span>
      </div>
      <div class="line"></div>
      <div class="jia-peice-layout">
        <span class="label">当前油价：</span>
        <span class="text">￥134.00</span>
      </div>
    </div>

    <span class="day-you-peice">
      今日已加油：100   升
    </span>

    <div class="bottom-layout">
      <div class="reset-btn">重置</div>
      <div class="confirm-btn">保存</div>
    </div>
  </div>
</template>

<script>
  export default {
    name: 'jiayout'
  }
</script>

<style lang="scss" scoped>
  .jiayou-layout {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100vw;

    .top-content {
      width: 100vw;
      display: flex;
      flex-direction: row;
      align-items: center;
      justify-content: center;
      margin-top: 20px;

      .timeLabel {
        font-size: 14px;
        color: #9B9B9B;
      }

      .timeText {
        font-size: 14px;
        color: #4A4A4A;
        margin-left: 20px;
      }

      .ypLabel {
        font-size: 14px;
        color: #9B9B9B;
        margin-left: 30px;
      }

      .ypText {
        font-size: 14px;
        color: #4A4A4A;
        margin-left: 20px;
      }
    }

    .card-layout {
      width: 322px;
      height: 294px;
      background: #FFFFFF;
      box-shadow: 0px 0px 6px 1px rgba(121, 121, 121, 0.3);
      border-radius: 4px;
      border: 0px solid rgba(222, 222, 222, 0.31);
      margin-top: 18px;
      display: flex;
      flex-direction: column;

      .car-number-layout {
        width: auto;
        height: auto;
        margin-left: 14px;
        margin-right: 14px;
        margin-top: 46px;
        border-radius: 2px;
        border: 1px solid #64C367;
      }

      .price-layout {
        margin-left: 27px;
        display: flex;
        flex-direction: row;
        align-items: center;
        margin-top: 27px;

        .label {
          font-size: 14px;
          color: #9B9B9B;
        }

        .text {
          display: flex;
          flex-direction: row;
          align-items: center;
          font-size: 14px;
          color: #9B9B9B;
          margin-left: 3px;

          .peice {
            font-size: 19px;
            font-weight: 600;
            color: #FA6400;
            margin-right: 16px;
          }
        }
      }

      .number-layout {
        margin-left: 27px;
        display: flex;
        flex-direction: row;
        align-items: center;
        margin-top: 27px;

        .label {
          font-size: 14px;
          color: #9B9B9B;
        }

        .text {
          display: flex;
          flex-direction: row;
          align-items: center;
          font-size: 14px;
          color: #9B9B9B;
          margin-left: 3px;

          .number {
            font-size: 23px;
            font-weight: 600;
            color: #FA6400;
            margin-right: 16px;
          }
        }

      }

      .line {
        width: auto;
        margin-left: 14px;
        margin-right: 14px;
        height: 1px;
        background-color: rgba(201, 201, 201, 0.5);
        margin-top: 35px;
      }

      .jia-peice-layout {
        display: flex;
        flex-direction: row;
        align-items: center;
        margin-left: 27px;
        flex: 1;

        .label {
          font-size: 14px;
          color: #9B9B9B;
        }

        .text {
          margin-left: 30px;
          font-size: 23px;
          font-weight: 600;
          color: #FA6400;
        }
      }

    }

    .day-you-peice {
      width: 95vw;
      font-size: 14px;
      margin-top: 90px;
      color: #9B9B9B;
    }

    .bottom-layout {
      width: 100vw;
      height: 47px;
      background: #FFFFFF;
      display: flex;
      flex-direction: row;
      position: fixed;
      bottom: 0px;

      .reset-btn {
        width: 121px;
        height: 47px;
        border-top: 1px solid #DDDCDC;
        display: flex;
        flex-direction: row;
        align-items: center;
        justify-content: center;
        font-size: 14px;
        color: #3A3A3A;
      }

      .confirm-btn {
        flex: 1;
        height: 47px;
        background: linear-gradient(221deg, #7ED785 0%, #64C367 100%);
        display: flex;
        flex-direction: row;
        align-items: center;
        justify-content: center;
        font-size: 14px;
        color: #FFFFFF;
      }
    }
  }
</style>
